<template>
  <div id="app">
    <h2>这是根组件</h2>
    <p>姓名{{uname.toUpperCase()}}</p>
    <p>年龄{{age}}</p>
    <p>{{flag?'1':'2'}}</p>
    <p v-html="info"></p>

  </div>
</template>

<script>

export default {
  data(){
    return{
      uname:'zhang',
      age:30,
      flag:true,
      info:'ok<strong>ok</strong>ok'
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
